package com.infoauto.opc.gateway.service.impl;

import com.infoauto.opc.gateway.dao.CheckTheNumberOfUnits1Dao;
import com.infoauto.opc.gateway.model.gtm4.CheckTheNumberOfUnits1;
import com.infoauto.opc.gateway.service.CheckTheNumberOfUnits1Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 检查通过台数1
 */
@Service
public class CheckTheNumberOfUnits1ServiceImpl implements CheckTheNumberOfUnits1Service {
    @Autowired
    private CheckTheNumberOfUnits1Dao dao;

    @Override
    public int insert(CheckTheNumberOfUnits1 checkTheNumberOfUnits1) {
        return dao.insert(checkTheNumberOfUnits1);
    }

    @Override
    public int update(CheckTheNumberOfUnits1 checkTheNumberOfUnits1) {
        return dao.update(checkTheNumberOfUnits1);
    }

    @Override
    public CheckTheNumberOfUnits1 select(String productionTime, Integer shift, Integer sn) {
        return dao.select(productionTime,shift,sn);
    }

    @Override
    public List<CheckTheNumberOfUnits1> selectByProducTionTimeAndShift(String productionTime, Integer shift) {
        return dao.selectByProducTionTimeAndShift(productionTime,shift);
    }

    @Override
    public CheckTheNumberOfUnits1 selectById(String id) {
        return dao.selectById(id);
    }
}
